<?php

namespace Modules\Common\Models\Validation;


/**
 *@property int $id
 *@property int $sid
 *@property int $eid
 *@property int $name
 *@property int $duration
 *property string $underlined_price
 *property string $description
 *@property int $is_permanent
 *@property int $status
 *@property int $admin_user_id
 *@property string $created_at
 *@property string $updated_at
 *@property string $deleted_at
 */
trait SubscriptionTypesValidation 
{


    public function createRules()
    {
         return [
            'rules' => [
                'name'=>'between:0,32',
                'is_permanent'=>'integer',
                'status'=>'integer',
                'underlined_price'=>'between:0,32',
                'duration'=>'between:0,32',
                'price'=>'between:0,32',
                'admin_user_id'=>'integer',
                'description'=>'between:0,255',
            ],
            'messages' => [
            ],
            'customAttributes' => [
            ]
        ];
    }

    public function updateRules()
    {
         return [
            'rules' => [
                'name'=>'between:0,32',
                'is_permanent'=>'integer',
                'status'=>'integer',
                'underlined_price'=>'between:0,32',
                'duration'=>'between:0,32',
                'price'=>'between:0,32',
                'admin_user_id'=>'integer',
                'description'=>'between:0,255',
                
            ],
            'messages' => [
            ],
            'customAttributes' => [
            ]
        ];
    }


}
